package org.cnc.explain.lifecycle;

import org.cnc.explain.lifecycle.mergedbean_4.ChildBean;
import org.cnc.explain.lifecycle.mergedbean_4.MergedBeanConfiguration;
import org.junit.jupiter.api.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * <p>
 * #TODO: desc
 * </p>
 *
 * @author zhiyong.tan
 * @since 2022-08-25
 */
public class Step4MergedBeanDefinition {
	@Test
	public void testMergeBeanDefinitions(){
		AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(MergedBeanConfiguration.class);
		ChildBean bean =  ctx.getBean(ChildBean.class);
		System.out.println(bean);
	}
}
